{extend name="public/base"/}
{block name="body"}
<script language="javascript">
window.onload=function() {
  document.forms[0].reset();
  placeFocus();
}
function placeFocus() {
  document.forms[0].elements[0].focus();
  // assuming the first element
}
</script>

<style>

.mui-table-view-cell p {

    margin-bottom: 0;

    font-size: 12px;

}

.mui-table-view .mui-media-object {

    line-height: 42px;

    width: 60px !important;

        max-width: 60px;

    height: 60px;

}

.mui-card-header {

    font-size: 12px;

    border-radius: 2px 2px 0 0;

        padding: 5px 10px;

}

</style>


<header class="mui-bar mui-bar-nav">
  <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>

    <h1 class="mui-title">我的订单</h1>
   
</header>
<div class="mui-content" style="    margin-bottom: 100px;">
<table class="table">
                        <thead>
                          <tr>
                          
                           
                            <th width="100">用户名字</th>
                            <th width="20%">商品价格</th>
                            <th width="20%">代理价格</th>
                            <th width="15%">代理提成</th>
                            <th width="15%">已结费用</th>
                            <th width="15%">未结费用</th>
                          </tr>
                        </thead>
                         {volist name="dllist" id="vo"}
                          <tr>
													
													
														<td>{$vo.name}</td>
														<td>{$vo.shoppirce}</td>
														<td>{$vo.dlshopprice}</td>
														<td>{$vo.shoppirce-$vo.dlshopprice}</td>
														<td>{$vo.dlalreadypay}</td>
														<td>{$vo.shoppirce-$vo.dlshopprice-$vo.dlalreadypay}</td>
													</tr>
													
                       {/volist}
                      </table>


</div>

{/block}
{block name="script"}
<script>


		
		
  mui.init({
    swipeBack:true //启用右滑关闭功能
  });
  $('#scroll').height($(window).height()-44)


  $(function(){
    $('.delorder').on('click', function(){
      var $this = $(this),id = $this.attr('data-id')
      var btnArray = ['否', '是'];
      mui.confirm('您确定要删除该订单吗？', '删除订单', btnArray, function(e) {
        if (e.index == 1) {
            $.post("{:url('index/order/delorder')}", {
                "id": id
            }, function(data) {
                mui.toast('删除成功！')
                setTimeout(function() {
                  location.reload()
                }, 2000);
            }, "json");

        } else {
          return ;
        }
      })


    })
  })


</script>


<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" charset="utf-8"></script>

<script>

    wx.config({$wxoptions|json_encode});

    wx.error(function(e){

      	console.log(e);

      });

    wx.ready(function(){

      wx.onMenuShareTimeline({

          title: "{$title}",
          desc: "{$title},订单详细情况查询", // 分享描述

          link: "",

          imgUrl: "http://www.xgw0851.com/public/images/getheadimg.png",

      });

      wx.onMenuShareAppMessage({

          title: "{$title}",

          desc: "{$title},订单详细情况查询", // 分享描述

          link: "",

          imgUrl: "http://www.xgw0851.com/public/images/getheadimg.png",



      });

    });

</script>


{/block}
